package com.edgclub.edg.api.param;

import android.text.TextUtils;

import com.edgclub.edg.http.param.Params;
import com.edgclub.edg.utils.util.CryptUtil;

import java.util.TreeMap;

/**
 * 关注举报结果参数
 * 
 * @author 陈坤彬
 *
 */
public class AttentionUsrtParam extends Params {

	private String fromUserId;
	private String toUserId;

	@Override
	public TreeMap<String, String> getParams() {
		params = simpleParams();

		if (null != fromUserId && !TextUtils.isEmpty(fromUserId)) {
			params.put("fromUserId", fromUserId);
		}
		if (null != toUserId && !TextUtils.isEmpty(toUserId)) {
			params.put("toUserId", toUserId);
		}

		params.put("sign", CryptUtil.md5(convertParam()));
		return params;
	}

	public String getFromUserId() {
		return fromUserId;
	}

	public void setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
	}

	public String getToUserId() {
		return toUserId;
	}

	public void setToUserId(String toUserId) {
		this.toUserId = toUserId;
	}

}
